package com.ai.langchain4j.bean;

import nonapi.io.github.classgraph.json.Id;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author 林
 * @create 2025-06-27 18:51
 */
@Document("chat_messages")
public class ChatMessages {
    @Id
    private ObjectId id;

    private String messageId;

    private String content;

    public ChatMessages() {
    }

    public ChatMessages(String messageId, String content) {
        this.messageId = messageId;
        this.content = content;
    }
    public ChatMessages(ObjectId id, String messageId, String content) {
        this.id = id;
        this.messageId = messageId;
        this.content = content;
    }


    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
